<SCRIPT LANGUAGE="JavaScript">

var now = new Date();

var day = now.getDay();
var dayname;

// convert the value of the day (0 to 6) into the name of the day
if (day == 0) 
   dayname = "Sunday";
else if (day == 1) 
   dayname = "Monday";
else if (day == 2) 
   dayname = "Tuesday";
else if (day == 3) 
   dayname = "Wednesday";
else if (day == 4) 
   dayname = "Thursday";
else if (day == 5) 
   dayname = "Friday";
else if (day == 6) 
   dayname = "Saturday";
else 
   dayname = "ERROR:  bad value of day";

document.write("Today is " + dayname + ". <BR>");

// now let's calculate the number of days until October break 
var then = new Date("October 6, 2000");

// calculate the number of millisecs between then and now
// NOTE: 1000 millisecs is 1 second
var gap_In_MilliSecs = then.getTime() - now.getTime();

// now calculate how many days it is; complete the JavaScript below
// gap_In_Days = Math.floor(gap_In_MilliSecs 
//document.write("Only " + gap_In_Days + " days \'till October break!");

</SCRIPT>